-- GENERATED SPELL FOR [Snowblind Windcaller] --


function spell0_11675(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(6728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11675', 12000, 1)
end

function spell1_11675(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11675', 3000, 1)
end

function Sorts_11675(pUnit, Event)
local choix_sorts_11675 = math.random(0, 1)
if choix_sorts_11675 == 0 then
pUnit:RegisterEvent('spell0_11675', 1, 1)
end
if choix_sorts_11675 == 1 then
pUnit:RegisterEvent('spell1_11675', 1, 1)
end
end

function mob11675_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11675', math.random(1500, 3000), 1)
end

function mob11675_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11675_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11675_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11675, 1, 'mob11675_Action')
RegisterUnitEvent(11675, 2, 'mob11675_Leave')
RegisterUnitEvent(11675, 3, 'mob11675_Kill')
RegisterUnitEvent(11675, 4, 'mob11675_Die')
